package lily.phs.object;

import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import lily.phs.database.Constants;

public class DiabetService implements Constants {

	private Context mContext;
	private int dise_profileid=-1;
	private int dise_times=-1;
	private String dise_date="";
	private int dise_service_pattern=-1;
	private String dise_symptoms="";
	private String dise_symptom_other="";
	private int dise_blood_pressure_high=-1;
	private int dise_blood_pressure_low=-1;
	private float dise_weight_now=-1f;
	private float dise_weight_goal=-1f;
	private float dise_bmt_now=-1f;
	private float dise_bmt_goal=-1f;
	private int dise_dap=-1;
	private String dise_physical_sign_other="";
	private int dise_smoke_now=-1;
	private int dise_smoke_goal=-1;
	private float dise_drink_now=-1f;
	private float dise_drink_goal=-1f;
	private int dise_exe_per_week_now=-1;
	private int dise_exe_lastlong_now=-1;
	private int dise_exe_per_week_goal=-1;
	private int dise_exe_lastlong_goal=-1;
	private float dise_diet_now=-1f;
	private float dise_diet_goal=-1f;
	private int dise_mentality=-1;
	private int dise_comply=-1;
	private float dise_fbs=-1f;
	private float dise_hemoglobin=-1f;
	private String dise_acce_exam_time="";
	private String dise_acce_exam_other="";
	private int dise_obedience=-1;
	private int dise_untoward_effect=-1;
	private int dise_hypoglycemia=-1;
	private int dise_classify=-1;
	private String dise_medicine_1="";
	private int dise_medi_1_usage=-1;
	private float dise_medi_1_dosage=-1f;
	private String dise_medicine_2="";
	private int dise_medi_2_usage=-1;
	private float dise_medi_2_dosage=-1f;
	private String dise_medicine_3="";
	private int dise_medi_3_usage=-1;
	private float dise_medi_3_dosage=-1f;
	private String dise_glucokinin="";
	private String dise_glucokinin_use="";
	private String dise_transfer_reason="";
	private String dise_transfer_hospital="";
	private String dise_next_visit_time="";
	private String dise_doctor="";
	
	public DiabetService(Context context){
		this.mContext = context;
	}
	
	public int getDise_profileid() {
		return dise_profileid;
	}
	public void setDise_profileid(int dise_profileid) {
		this.dise_profileid = dise_profileid;
	}
	public int getDise_times() {
		return dise_times;
	}
	public void setDise_times(int dise_times) {
		this.dise_times = dise_times;
	}
	public String getDise_date() {
		return dise_date;
	}
	public void setDise_date(String dise_date) {
		this.dise_date = dise_date;
	}
	public int getDise_service_pattern() {
		return dise_service_pattern;
	}
	public void setDise_service_pattern(int dise_service_pattern) {
		this.dise_service_pattern = dise_service_pattern;
	}
	public String getDise_symptoms() {
		return dise_symptoms;
	}
	public void setDise_symptoms(String dise_symptoms) {
		this.dise_symptoms = dise_symptoms;
	}
	public String getDise_symptom_other() {
		return dise_symptom_other;
	}
	public void setDise_symptom_other(String dise_symptom_other) {
		this.dise_symptom_other = dise_symptom_other;
	}
	public int getDise_blood_pressure_high() {
		return dise_blood_pressure_high;
	}
	public void setDise_blood_pressure_high(int dise_blood_pressure_high) {
		this.dise_blood_pressure_high = dise_blood_pressure_high;
	}
	public int getDise_blood_pressure_low() {
		return dise_blood_pressure_low;
	}
	public void setDise_blood_pressure_low(int dise_blood_pressure_low) {
		this.dise_blood_pressure_low = dise_blood_pressure_low;
	}
	public float getDise_weight_now() {
		return dise_weight_now;
	}
	public void setDise_weight_now(float dise_weight_now) {
		this.dise_weight_now = dise_weight_now;
	}
	public float getDise_weight_goal() {
		return dise_weight_goal;
	}
	public void setDise_weight_goal(float dise_weight_goal) {
		this.dise_weight_goal = dise_weight_goal;
	}
	public float getDise_bmt_now() {
		return dise_bmt_now;
	}
	public void setDise_bmt_now(float dise_bmt_now) {
		this.dise_bmt_now = dise_bmt_now;
	}
	public float getDise_bmt_goal() {
		return dise_bmt_goal;
	}
	public void setDise_bmt_goal(float dise_bmt_goal) {
		this.dise_bmt_goal = dise_bmt_goal;
	}
	public int getDise_dap() {
		return dise_dap;
	}
	public void setDise_dap(int dise_dap) {
		this.dise_dap = dise_dap;
	}
	public String getDise_physical_sign_other() {
		return dise_physical_sign_other;
	}
	public void setDise_physical_sign_other(String dise_physical_sign_other) {
		this.dise_physical_sign_other = dise_physical_sign_other;
	}
	public int getDise_smoke_now() {
		return dise_smoke_now;
	}
	public void setDise_smoke_now(int dise_smoke_now) {
		this.dise_smoke_now = dise_smoke_now;
	}
	public int getDise_smoke_goal() {
		return dise_smoke_goal;
	}
	public void setDise_smoke_goal(int dise_smoke_goal) {
		this.dise_smoke_goal = dise_smoke_goal;
	}
	public float getDise_drink_now() {
		return dise_drink_now;
	}
	public void setDise_drink_now(float dise_drink_now) {
		this.dise_drink_now = dise_drink_now;
	}
	public float getDise_drink_goal() {
		return dise_drink_goal;
	}
	public void setDise_drink_goal(float dise_drink_goal) {
		this.dise_drink_goal = dise_drink_goal;
	}
	public int getDise_exe_per_week_now() {
		return dise_exe_per_week_now;
	}
	public void setDise_exe_per_week_now(int dise_exe_per_week_now) {
		this.dise_exe_per_week_now = dise_exe_per_week_now;
	}
	public int getDise_exe_lastlong_now() {
		return dise_exe_lastlong_now;
	}
	public void setDise_exe_lastlong_now(int dise_exe_lastlong_now) {
		this.dise_exe_lastlong_now = dise_exe_lastlong_now;
	}
	public int getDise_exe_per_week_goal() {
		return dise_exe_per_week_goal;
	}
	public void setDise_exe_per_week_goal(int dise_exe_per_week_goal) {
		this.dise_exe_per_week_goal = dise_exe_per_week_goal;
	}
	public int getDise_exe_lastlong_goal() {
		return dise_exe_lastlong_goal;
	}
	public void setDise_exe_lastlong_goal(int dise_exe_lastlong_goal) {
		this.dise_exe_lastlong_goal = dise_exe_lastlong_goal;
	}
	public float getDise_diet_now() {
		return dise_diet_now;
	}
	public void setDise_diet_now(float dise_diet_now) {
		this.dise_diet_now = dise_diet_now;
	}
	public float getDise_diet_goal() {
		return dise_diet_goal;
	}
	public void setDise_diet_goal(float dise_diet_goal) {
		this.dise_diet_goal = dise_diet_goal;
	}
	public int getDise_mentality() {
		return dise_mentality;
	}
	public void setDise_mentality(int dise_mentality) {
		this.dise_mentality = dise_mentality;
	}
	public int getDise_comply() {
		return dise_comply;
	}
	public void setDise_comply(int dise_comply) {
		this.dise_comply = dise_comply;
	}
	public float getDise_fbs() {
		return dise_fbs;
	}
	public void setDise_fbs(float dise_fbs) {
		this.dise_fbs = dise_fbs;
	}
	public float getDise_hemoglobin() {
		return dise_hemoglobin;
	}
	public void setDise_hemoglobin(float dise_hemoglobin) {
		this.dise_hemoglobin = dise_hemoglobin;
	}
	public String getDise_acce_exam_time() {
		return dise_acce_exam_time;
	}
	public void setDise_acce_exam_time(String dise_acce_exam_time) {
		this.dise_acce_exam_time = dise_acce_exam_time;
	}
	public String getDise_acce_exam_other() {
		return dise_acce_exam_other;
	}
	public void setDise_acce_exam_other(String dise_acce_exam_other) {
		this.dise_acce_exam_other = dise_acce_exam_other;
	}
	public int getDise_obedience() {
		return dise_obedience;
	}
	public void setDise_obedience(int dise_obedience) {
		this.dise_obedience = dise_obedience;
	}
	public int getDise_untoward_effect() {
		return dise_untoward_effect;
	}
	public void setDise_untoward_effect(int dise_untoward_effect) {
		this.dise_untoward_effect = dise_untoward_effect;
	}
	public int getDise_hypoglycemia() {
		return dise_hypoglycemia;
	}
	public void setDise_hypoglycemia(int dise_hypoglycemia) {
		this.dise_hypoglycemia = dise_hypoglycemia;
	}
	public int getDise_classify() {
		return dise_classify;
	}
	public void setDise_classify(int dise_classify) {
		this.dise_classify = dise_classify;
	}
	public String getDise_medicine_1() {
		return dise_medicine_1;
	}
	public void setDise_medicine_1(String dise_medicine_1) {
		this.dise_medicine_1 = dise_medicine_1;
	}
	public int getDise_medi_1_usage() {
		return dise_medi_1_usage;
	}
	public void setDise_medi_1_usage(int dise_medi_1_usage) {
		this.dise_medi_1_usage = dise_medi_1_usage;
	}
	public float getDise_medi_1_dosage() {
		return dise_medi_1_dosage;
	}
	public void setDise_medi_1_dosage(float dise_medi_1_dosage) {
		this.dise_medi_1_dosage = dise_medi_1_dosage;
	}
	public String getDise_medicine_2() {
		return dise_medicine_2;
	}
	public void setDise_medicine_2(String dise_medicine_2) {
		this.dise_medicine_2 = dise_medicine_2;
	}
	public int getDise_medi_2_usage() {
		return dise_medi_2_usage;
	}
	public void setDise_medi_2_usage(int dise_medi_2_usage) {
		this.dise_medi_2_usage = dise_medi_2_usage;
	}
	public float getDise_medi_2_dosage() {
		return dise_medi_2_dosage;
	}
	public void setDise_medi_2_dosage(float dise_medi_2_dosage) {
		this.dise_medi_2_dosage = dise_medi_2_dosage;
	}
	public String getDise_medicine_3() {
		return dise_medicine_3;
	}
	public void setDise_medicine_3(String dise_medicine_3) {
		this.dise_medicine_3 = dise_medicine_3;
	}
	public int getDise_medi_3_usage() {
		return dise_medi_3_usage;
	}
	public void setDise_medi_3_usage(int dise_medi_3_usage) {
		this.dise_medi_3_usage = dise_medi_3_usage;
	}
	public float getDise_medi_3_dosage() {
		return dise_medi_3_dosage;
	}
	public void setDise_medi_3_dosage(float dise_medi_3_dosage) {
		this.dise_medi_3_dosage = dise_medi_3_dosage;
	}
	public String getDise_glucokinin() {
		return dise_glucokinin;
	}
	public void setDise_glucokinin(String dise_glucokinin) {
		this.dise_glucokinin = dise_glucokinin;
	}
	public String getDise_glucokinin_use() {
		return dise_glucokinin_use;
	}
	public void setDise_glucokinin_use(String dise_glucokinin_use) {
		this.dise_glucokinin_use = dise_glucokinin_use;
	}
	public String getDise_transfer_reason() {
		return dise_transfer_reason;
	}
	public void setDise_transfer_reason(String dise_transfer_reason) {
		this.dise_transfer_reason = dise_transfer_reason;
	}
	public String getDise_transfer_hospital() {
		return dise_transfer_hospital;
	}
	public void setDise_transfer_hospital(String dise_transfer_hospital) {
		this.dise_transfer_hospital = dise_transfer_hospital;
	}
	public String getDise_next_visit_time() {
		return dise_next_visit_time;
	}
	public void setDise_next_visit_time(String dise_next_visit_time) {
		this.dise_next_visit_time = dise_next_visit_time;
	}
	public String getDise_doctor() {
		return dise_doctor;
	}
	public void setDise_doctor(String dise_doctor) {
		this.dise_doctor = dise_doctor;
	}
	
	/**
	 * 将当前信息插入数据库
	 */
	public void insertDiabetService(){
		ContentValues value = new ContentValues();
		value.put(DISE_PROFILEID,this.getDise_profileid());
		value.put(DISE_TIMES,this.getDise_times());
		value.put(DISE_DATE,this.getDise_date());
		value.put(DISE_SERVICE_PATTERN,this.getDise_service_pattern());
		value.put(DISE_SYMPTOMS,this.getDise_symptoms());
		value.put(DISE_SYMPTOM_OTHER,this.getDise_symptom_other());
		value.put(DISE_BLOOD_PRESSURE_HIGH,this.getDise_blood_pressure_high());
		value.put(DISE_BLOOD_PRESSURE_LOW,this.getDise_blood_pressure_low());
		value.put(DISE_WEIGHT_NOW,this.getDise_weight_now());
		value.put(DISE_WEIGHT_GOAL,this.getDise_weight_goal());
		value.put(DISE_BMT_NOW,this.getDise_bmt_now());
		value.put(DISE_BMT_GOAL,this.getDise_bmt_goal());
		value.put(DISE_DAP,this.getDise_dap());
		value.put(DISE_PHYSICAL_SIGN_OTHER,this.getDise_physical_sign_other());
		value.put(DISE_SMOKE_NOW,this.getDise_smoke_now());
		value.put(DISE_SMOKE_GOAL,this.getDise_smoke_goal());
		value.put(DISE_DRINK_NOW,this.getDise_drink_now());
		value.put(DISE_DRINK_GOAL,this.getDise_drink_goal());
		value.put(DISE_EXE_PER_WEEK_NOW,this.getDise_exe_per_week_now());
		value.put(DISE_EXE_LASTLONG_NOW,this.getDise_exe_lastlong_now());
		value.put(DISE_EXE_PER_WEEK_GOAL,this.getDise_exe_per_week_goal());
		value.put(DISE_EXE_LAST_LONG_GOAL,this.getDise_exe_lastlong_goal());
		value.put(DISE_DIET_NOW,this.getDise_diet_now());
		value.put(DISE_DIET_GOAL,this.getDise_diet_goal());
		value.put(DISE_MENTALITY,this.getDise_mentality());
		value.put(DISE_COMPLY,this.getDise_comply());
		value.put(DISE_FBS,this.getDise_fbs());
		value.put(DISE_HEMOGLOBIN,this.getDise_hemoglobin());
		value.put(DISE_ACCE_EXAM_TIME,this.getDise_acce_exam_time());
		value.put(DISE_ACCE_EXAM_OTHER,this.getDise_acce_exam_other());
		value.put(DISE_OBEDIENCE,this.getDise_obedience());
		value.put(DISE_UNTOWARD_EFFECT,this.getDise_untoward_effect());
		value.put(DISE_HYPOGLYCEMIA,this.getDise_hypoglycemia());
		value.put(DISE_CLASSIFY,this.getDise_classify());
		value.put(DISE_MEDICINE_1,this.getDise_medicine_1());
		value.put(DISE_MEDI_1_USAGE,this.getDise_medi_1_usage());
		value.put(DISE_MEDI_1_DOSAGE,this.getDise_medi_1_dosage());
		value.put(DISE_MEDICINE_2,this.getDise_medicine_2());
		value.put(DISE_MEDI_2_USAGE,this.getDise_medi_2_usage());
		value.put(DISE_MEDI_2_DOSAGE,this.getDise_medi_2_dosage());
		value.put(DISE_MEDICINE_3,this.getDise_medicine_3());
		value.put(DISE_MEDI_3_USAGE,this.getDise_medi_3_usage());
		value.put(DISE_MEDI_3_DOSAGE,this.getDise_medi_3_dosage());
		value.put(DISE_GLUCOKININ,this.getDise_glucokinin());
		value.put(DISE_GLUCOKININ_USE,this.getDise_glucokinin_use());
		value.put(DISE_TRANSFER_REANSON,this.getDise_transfer_reason());
		value.put(DISE_TRANSFER_HOSPITAL,this.getDise_transfer_hospital());
		value.put(DISE_NEXT_VISIT_TIME,this.getDise_next_visit_time());
		value.put(DISE_DOCTOR,this.getDise_doctor());
		
		mContext.getContentResolver().insert(CONTENT_URI_TB26, value);
	}
	
	/**
	 * 从数据库中检出数据，并初始化当前对象
	 */
	public void selectDiabetService(int id, int times){
		String where = DISE_PROFILEID + "=" + id + " AND "+DISE_TIMES + "=" + times + "";
		Cursor cursor = mContext.getContentResolver().query(CONTENT_URI_TB26, null, where, null, null);
		while(cursor.moveToNext()){
			this.dise_profileid = cursor.getInt(cursor.getColumnIndex(DISE_PROFILEID));
			this.dise_times = cursor.getInt(cursor.getColumnIndex(DISE_TIMES));
			this.dise_date = cursor.getString(cursor.getColumnIndex(DISE_DATE));
			this.dise_service_pattern = cursor.getInt(cursor.getColumnIndex(DISE_SERVICE_PATTERN));
			this.dise_symptoms = cursor.getString(cursor.getColumnIndex(DISE_SYMPTOMS));
			this.dise_symptom_other = cursor.getString(cursor.getColumnIndex(DISE_SYMPTOM_OTHER));
			this.dise_blood_pressure_high = cursor.getInt(cursor.getColumnIndex(DISE_BLOOD_PRESSURE_HIGH));
			this.dise_blood_pressure_low = cursor.getInt(cursor.getColumnIndex(DISE_BLOOD_PRESSURE_LOW));
			this.dise_weight_now = cursor.getFloat(cursor.getColumnIndex(DISE_WEIGHT_NOW));
			this.dise_weight_goal = cursor.getFloat(cursor.getColumnIndex(DISE_WEIGHT_GOAL));
			this.dise_bmt_now = cursor.getFloat(cursor.getColumnIndex(DISE_BMT_NOW));
			this.dise_bmt_goal = cursor.getFloat(cursor.getColumnIndex(DISE_BMT_GOAL));
			this.dise_dap = cursor.getInt(cursor.getColumnIndex(DISE_DAP));
			this.dise_physical_sign_other = cursor.getString(cursor.getColumnIndex(DISE_PHYSICAL_SIGN_OTHER));
			this.dise_smoke_now = cursor.getInt(cursor.getColumnIndex(DISE_SMOKE_NOW));
			this.dise_smoke_goal = cursor.getInt(cursor.getColumnIndex(DISE_SMOKE_GOAL));
			this.dise_drink_now = cursor.getFloat(cursor.getColumnIndex(DISE_DRINK_NOW));
			this.dise_drink_goal = cursor.getFloat(cursor.getColumnIndex(DISE_DRINK_GOAL));
			this.dise_exe_per_week_now = cursor.getInt(cursor.getColumnIndex(DISE_EXE_PER_WEEK_NOW));
			this.dise_exe_lastlong_now = cursor.getInt(cursor.getColumnIndex(DISE_EXE_LASTLONG_NOW));
			this.dise_exe_per_week_goal = cursor.getInt(cursor.getColumnIndex(DISE_EXE_PER_WEEK_GOAL));
			this.dise_exe_lastlong_goal = cursor.getInt(cursor.getColumnIndex(DISE_EXE_LAST_LONG_GOAL));
			this.dise_diet_now = cursor.getFloat(cursor.getColumnIndex(DISE_DIET_NOW));
			this.dise_diet_goal = cursor.getFloat(cursor.getColumnIndex(DISE_DIET_GOAL));
			this.dise_mentality = cursor.getInt(cursor.getColumnIndex(DISE_MENTALITY));
			this.dise_comply = cursor.getInt(cursor.getColumnIndex(DISE_COMPLY));
			this.dise_fbs = cursor.getFloat(cursor.getColumnIndex(DISE_FBS));
			this.dise_hemoglobin = cursor.getFloat(cursor.getColumnIndex(DISE_HEMOGLOBIN));
			this.dise_acce_exam_time = cursor.getString(cursor.getColumnIndex(DISE_ACCE_EXAM_TIME));
			this.dise_acce_exam_other = cursor.getString(cursor.getColumnIndex(DISE_ACCE_EXAM_OTHER));
			this.dise_obedience = cursor.getInt(cursor.getColumnIndex(DISE_OBEDIENCE));
			this.dise_untoward_effect = cursor.getInt(cursor.getColumnIndex(DISE_UNTOWARD_EFFECT));
			this.dise_hypoglycemia = cursor.getInt(cursor.getColumnIndex(DISE_HYPOGLYCEMIA));
			this.dise_classify = cursor.getInt(cursor.getColumnIndex(DISE_CLASSIFY));
			this.dise_medicine_1 = cursor.getString(cursor.getColumnIndex(DISE_MEDICINE_1));
			this.dise_medi_1_usage = cursor.getInt(cursor.getColumnIndex(DISE_MEDI_1_USAGE));
			this.dise_medi_1_dosage = cursor.getFloat(cursor.getColumnIndex(DISE_MEDI_1_DOSAGE));
			this.dise_medicine_2 = cursor.getString(cursor.getColumnIndex(DISE_MEDICINE_2));
			this.dise_medi_2_usage = cursor.getInt(cursor.getColumnIndex(DISE_MEDI_2_USAGE));
			this.dise_medi_2_dosage = cursor.getFloat(cursor.getColumnIndex(DISE_MEDI_2_DOSAGE));
			this.dise_medicine_3 = cursor.getString(cursor.getColumnIndex(DISE_MEDICINE_3));
			this.dise_medi_3_usage = cursor.getInt(cursor.getColumnIndex(DISE_MEDI_3_USAGE));
			this.dise_medi_3_dosage = cursor.getFloat(cursor.getColumnIndex(DISE_MEDI_3_DOSAGE));
			this.dise_glucokinin = cursor.getString(cursor.getColumnIndex(DISE_GLUCOKININ));
			this.dise_glucokinin_use = cursor.getString(cursor.getColumnIndex(DISE_GLUCOKININ_USE));
			this.dise_transfer_reason = cursor.getString(cursor.getColumnIndex(DISE_TRANSFER_REANSON));
			this.dise_transfer_hospital = cursor.getString(cursor.getColumnIndex(DISE_TRANSFER_HOSPITAL));
			this.dise_next_visit_time = cursor.getString(cursor.getColumnIndex(DISE_NEXT_VISIT_TIME));
			this.dise_doctor = cursor.getString(cursor.getColumnIndex(DISE_DOCTOR));
		
		}
		cursor.close();
	}
	
	/**
	 * 更新数据库中的信息
	 */
	public void updateDiabetService(int id, int times){
		ContentValues value = new ContentValues();
		value.put(DISE_PROFILEID,this.getDise_profileid());
		value.put(DISE_TIMES,this.getDise_times());
		value.put(DISE_DATE,this.getDise_date());
		value.put(DISE_SERVICE_PATTERN,this.getDise_service_pattern());
		value.put(DISE_SYMPTOMS,this.getDise_symptoms());
		value.put(DISE_SYMPTOM_OTHER,this.getDise_symptom_other());
		value.put(DISE_BLOOD_PRESSURE_HIGH,this.getDise_blood_pressure_high());
		value.put(DISE_BLOOD_PRESSURE_LOW,this.getDise_blood_pressure_low());
		value.put(DISE_WEIGHT_NOW,this.getDise_weight_now());
		value.put(DISE_WEIGHT_GOAL,this.getDise_weight_goal());
		value.put(DISE_BMT_NOW,this.getDise_bmt_now());
		value.put(DISE_BMT_GOAL,this.getDise_bmt_goal());
		value.put(DISE_DAP,this.getDise_dap());
		value.put(DISE_PHYSICAL_SIGN_OTHER,this.getDise_physical_sign_other());
		value.put(DISE_SMOKE_NOW,this.getDise_smoke_now());
		value.put(DISE_SMOKE_GOAL,this.getDise_smoke_goal());
		value.put(DISE_DRINK_NOW,this.getDise_drink_now());
		value.put(DISE_DRINK_GOAL,this.getDise_drink_goal());
		value.put(DISE_EXE_PER_WEEK_NOW,this.getDise_exe_per_week_now());
		value.put(DISE_EXE_LASTLONG_NOW,this.getDise_exe_lastlong_now());
		value.put(DISE_EXE_PER_WEEK_GOAL,this.getDise_exe_per_week_goal());
		value.put(DISE_EXE_LAST_LONG_GOAL,this.getDise_exe_lastlong_goal());
		value.put(DISE_DIET_NOW,this.getDise_diet_now());
		value.put(DISE_DIET_GOAL,this.getDise_diet_goal());
		value.put(DISE_MENTALITY,this.getDise_mentality());
		value.put(DISE_COMPLY,this.getDise_comply());
		value.put(DISE_FBS,this.getDise_fbs());
		value.put(DISE_HEMOGLOBIN,this.getDise_hemoglobin());
		value.put(DISE_ACCE_EXAM_TIME,this.getDise_acce_exam_time());
		value.put(DISE_ACCE_EXAM_OTHER,this.getDise_acce_exam_other());
		value.put(DISE_OBEDIENCE,this.getDise_obedience());
		value.put(DISE_UNTOWARD_EFFECT,this.getDise_untoward_effect());
		value.put(DISE_HYPOGLYCEMIA,this.getDise_hypoglycemia());
		value.put(DISE_CLASSIFY,this.getDise_classify());
		value.put(DISE_MEDICINE_1,this.getDise_medicine_1());
		value.put(DISE_MEDI_1_USAGE,this.getDise_medi_1_usage());
		value.put(DISE_MEDI_1_DOSAGE,this.getDise_medi_1_dosage());
		value.put(DISE_MEDICINE_2,this.getDise_medicine_2());
		value.put(DISE_MEDI_2_USAGE,this.getDise_medi_2_usage());
		value.put(DISE_MEDI_2_DOSAGE,this.getDise_medi_2_dosage());
		value.put(DISE_MEDICINE_3,this.getDise_medicine_3());
		value.put(DISE_MEDI_3_USAGE,this.getDise_medi_3_usage());
		value.put(DISE_MEDI_3_DOSAGE,this.getDise_medi_3_dosage());
		value.put(DISE_GLUCOKININ,this.getDise_glucokinin());
		value.put(DISE_GLUCOKININ_USE,this.getDise_glucokinin_use());
		value.put(DISE_TRANSFER_REANSON,this.getDise_transfer_reason());
		value.put(DISE_TRANSFER_HOSPITAL,this.getDise_transfer_hospital());
		value.put(DISE_NEXT_VISIT_TIME,this.getDise_next_visit_time());
		value.put(DISE_DOCTOR,this.getDise_doctor());
		
		String where = DISE_PROFILEID + "=" + id + " AND "+DISE_TIMES + "=" + times + "";
		mContext.getContentResolver().update(CONTENT_URI_TB26, value, where, null);
	}
	
	/**
	 * 删除患者某次的随访记录
	 */
	public void deleteDiabetService(int id, int times){
		String where = DISE_PROFILEID + "=" + id + " AND "+DISE_TIMES + "=" + times + "";
		mContext.getContentResolver().delete(CONTENT_URI_TB26, where, null);
	}
	
	/**
	 * 删除患者的全部随访记录
	 * @param id
	 */
	public void deleteDiabetService(int id){
		String where = DISE_PROFILEID + "=" + id + "";
		mContext.getContentResolver().delete(CONTENT_URI_TB26, where, null);
	}
}
